#! /bin/bash

# 专门用于测试usleep命令的脚本

flag=10
echo "flag is $flag"

while [ $flag -gt 0 ];
do
    echo "sleeping"
    usleep 1000
    ((flag=$flag-1))
done
